package videoExercises;

import java.util.TreeSet;

public class StudentTest {
    public static void main(String[] args) {
        Student a = new Student("cw", 18);
        Student b = new Student("ly", 16);
        Student c = new Student("wc", 20);
        TreeSet<Student> tree =new TreeSet<>();
        tree.add(a);
        tree.add(b);
        tree.add(c);
        System.out.println(tree);
    }
}
